﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;

namespace Tetris
{
    class Program
    {
        static void Main(string[] args)
        {
            int startPositionX = 5;
            int startPositionY = 5;
            GameField gameField = new GameField(startPositionX + 1, startPositionY + 1);
            Drawer newDrawer = new Drawer();
            newDrawer.DrawGameField(gameField, '*');
            Node newNode = new Node(gameField);
           

            do
            {
                newDrawer.DrawNode(newNode);
                Thread.Sleep(200);
                newDrawer.ClearNode(newNode);

                newNode.MoveDown();


            } while (newNode.Y != gameField.Y + gameField.Height);


        }

        public void ConstantMovingDown(Node node, GameField gameField, Drawer newDrawer)
        {
            do
            {
                newDrawer.DrawNode(node);
                node.MoveDown();
                newDrawer.ClearNode(node);

            } while (node.Y != gameField.Y + gameField.Height);
        }
    }
}
